const { createProxyMiddleware } = require('http-proxy-middleware');

if(process.env.NODE_ENV === "development"){
    module.exports = function(app){
        app.use(
            "/dev",
            createProxyMiddleware({
                // target: "http://192.168.129.174:11110/",
                target: "http://192.168.129.174:10324/",
                // target: "http://192.168.129.214:8083/",
                // target: "http://192.168.129.134:10300/",
                // target: "http://192.168.129.155:8083/",
                // target: "http://lgk12.lancooedu.com:20300/",
                // target: "http://192.168.129.75:10300/",
                changeOrigin: true,
                pathRewrite: { "^/dev": "" }
            })
        )
    }
}